<template>
<!--特征污染因子实时浓度-->
    <div class="pollution_concentration">
        <CommonTitleComponent text="特征污染因子实时浓度"></CommonTitleComponent>
        <ul class="pollution_concentration_box">
            <li v-for="(item, index) in data.list" :key="index">
                <div>
                    <div class="borders"></div>
                    <span>{{ item.name }}</span>
                </div>
                <p>{{ item.value }}mg/㎡</p>
            </li>
        </ul>
    </div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue';

const data = reactive({
    list: [
        { name: 'SO2', value: '10.00' },
        { name: 'NO2', value: '1.22' },
        { name: '甲醇', value: '2.12' },
        { name: 'PM2.5', value: '0.03' },
        { name: 'COD', value: '140.85' },
        { name: '苯', value: '0.24' },
    ]
});
</script>

<style scoped lang="scss">
.pollution_concentration{
    height: 100%;
    padding-top: 17px;
    &_box {
        height: calc(100% - 16px);
        padding-top: 5px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        li {
            background: url('@img/imterBg_2.png') no-repeat;
            background-size: 100% 100%;
            width: 47%;
            margin-top: 10px;
            height:calc(calc(100% / 3) - 10px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-right: 13px;
            padding: 0 16px;
            padding-right: 4px;
            box-sizing: border-box;
            > div {
                display: flex;
                align-items: center;
                .borders {
                    width: 4px;
                    height: 10px;
                    background: #ffffff;
                    margin-right: 8px;
                }
                span {
                    @include fontCustomStyle(#fff, 12px);
                }
            }
            p {
                @include fontCustomStyle(#0e96ff, 14px);
                @include pmzd();
            }

            &:nth-of-type(2n) {
                margin-right: 0;
            }
        }
    }
}
</style>